package com.hyperion.blog.vo;


/**
 * 用来返回系统内部状态码
 * @author Hyperion
 */
public enum ErrorCode {
    SYSTEM_ERROR(500, "系统错误"),
    PARAMS_ERROR(500, "参数有误"),
    TOKEN_ERROR(500, "token不合法"),
    ACCOUNT_EXIST(500, "账号已存在"),
    NO_PERMISSION(500, "无访问权限"),
    SESSION_TIME_OUT(500, "会话超时"),
    NO_LOGIN(500, "未登录");

    private Integer code;
    private String msg;

    ErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
